const express = require('express')
const app = express()
const mw1 = (req,res,next)=>{
    console.log('调用了局部中间件')
    next()
}
app.get('/',mw1,(req,res)=>{
    res.send('---')  
    console.log('get')
      
})
app.post('/user',(req,res)=>{
    res.send('---') 
    console.log('post')
       
})


app.listen(80,() => {
 console.log('http://127.0.0.1')
})